// 用户信息是一个对象
const initialState = {};

const user = (state = initialState, action) => {
  switch (action.type) {
    case 'user/getUserInfo':
      return action.payload;
    case 'user/clearInfo':
      return initialState;
    default:
      return state;
  }
};

export default user;
